#include "p2d_force.h"
#include <algorithm>
using namespace part2d;


P2DForce::ForceAction     P2DForce::GetAction(const std::string& _Str)
{
    std::string Action = _Str;
    std::transform(Action.begin(), Action.end(), Action.begin(), tolower);

    if (Action == "move") return Move;
    if (Action == "bounce") return Bounce;
    if (Action == "kill") return Kill;
    return Move;
}
